
function craftingMovements(moveitem, tileitem, position, table_)
	if table_ == nil then
		return false
	end
		
	if table_.newCount == nil then
		table_.newCount = moveitem.type --- / 1 czy to dobry pomysl?
	end

	if table_.oldCount ~= nil then
		if moveitem.type == table_.oldCount then
			doRemoveItem(moveitem.uid)
			if table_.newId ~= 0 and table_.newId ~= nil then
				doCreateItem(table_.newId, table_.newCount, position)
			end
		else
			return false
		end
	else
		doRemoveItem(moveitem.uid)
		if table_.newId ~= 0 and table_.newId ~= nil then
			doCreateItem(table_.newId, table_.newCount, position)
		end
	end
	if table_.effect ~= nil then
		doSendMagicEffect(position, table_.effect)
	end
	return true
end